import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import '@/assets/styles/index.scss'

import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'; // 引入持久化插件
import zhCn from '@element-plus/locale/lang/zh-cn';
import router from './router'

const app = createApp(App)
app.use(ElementPlus, {
    locale: zhCn
})
app.use(router)
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate); // 使用持久化插件
app.use(pinia);
app.mount('#app')
export default app

